/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 * 注意：
 * 本软件为www.joolun.com开发研制，项目使用请保留此说明
 */
package com.ruoyi.mall.dubbo;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.mall.api.RemoteOrderLogisticsService;
import com.ruoyi.mall.api.entity.OrderLogistics;
import com.ruoyi.mall.mapper.OrderLogisticsMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * 订单物流
 *
 * @author www.joolun.com
 * @date 2019-09-16 09:53:17
 */
@Service
@DubboService
public class RemoteOrderLogisticsServiceImpl extends ServiceImpl<OrderLogisticsMapper, OrderLogistics> implements RemoteOrderLogisticsService {


    @Override
    public OrderLogistics getOneByLogisticsId(String logisticsId) {
        return this.getOne(Wrappers.<OrderLogistics>lambdaQuery().eq(OrderLogistics::getLogistics, logisticsId));
    }

    @Override
    public boolean updateById(OrderLogistics entity) {
        return super.updateById(entity);
    }

    @Override
    public boolean save(OrderLogistics entity) {
        return super.save(entity);
    }

    @Override
    public OrderLogistics getById(String id) {
        return super.getById(id);
    }

    @Override
    public IPage page(Page page, OrderLogistics orderLogistics) {
        return super.page(page, Wrappers.query(orderLogistics));
    }

    @Override
    public boolean removeById(String id) {
        return super.removeById(id);
    }
}
